package cn.wolfcode.feign;

import cn.wolfcode.common.web.Result;
import cn.wolfcode.domain.OperateIntergralVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name="intergral-service")
public interface IntegralFeignService {

    @PostMapping("/integral/integralPay")
    Result<String> integralPay(@RequestBody OperateIntergralVo vo);

    @PostMapping("/integral/refund")
    Result<Boolean> integralRefund(@RequestBody OperateIntergralVo vo);
}
